<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<!-- header -->
		<%@ include file="/WEB-INF/views/include/header.jsp"%>
	</head>
	<body class="no-skin">
		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<%--征迁--%>
				<shiro:hasPermission name="sys:gongjian:zhengqianlist">
				<div class="main-content-inner" >
					<div class="page-content">
						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">

								<h3 align="center ">征迁交地项目清单</h3>
								<div class="pull-left">
									<button class="btn btn-sm btn-info" id="zhengdi-query">刷新任务</button>
									<%--<shiro:hasPermission name="modules:sys:table:query">
                                        <button class="btn btn-sm btn-info" id="query">查询</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:edit">
                                        <button class="btn btn-sm btn-default" id="edit">修改</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:create">
                                        <button class="btn btn-sm btn-success" id="create">新增</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:delete">
                                        <button class="btn btn-sm btn-danger" id="delete">删除</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:excel">
                                        <button class="btn btn-sm btn-pink" id="export">导出</button>
                                    </shiro:hasPermission>--%>
                                    </div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
									<!-- jqGrid表格 -->
									<table id="gridTable"></table>
									<!-- jqGrid工具类 -->
									<div id="gridPager"></div>
									<!-- 查询对话框 -->
									<div style="display: none;">
										<div class="row" id="queryDialog"></div>
									</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
				</shiro:hasPermission>
				<%--				开工--%>
					<shiro:hasPermission name="sys:gongjian:kaigonglist">
				<div class="main-content-inner">
					<div class="page-content">
						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">

								<h3 align="center">开工提速项目清单</h3>
								<div class="pull-left">
									<button class="btn btn-sm btn-info" id="kaigong-query">刷新任务</button>

								<%--<shiro:hasPermission name="modules:sys:table:query">
                                        <button class="btn btn-sm btn-info" id="query">查询</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:edit">
                                        <button class="btn btn-sm btn-default" id="edit">修改</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:create">
                                        <button class="btn btn-sm btn-success" id="create">新增</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:delete">
                                        <button class="btn btn-sm btn-danger" id="delete">删除</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:excel">
                                        <button class="btn btn-sm btn-pink" id="export">导出</button>
                                    </shiro:hasPermission>--%>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<!-- jqGrid表格 -->
								<table id="gridTable_kaigong"></table>
								<!-- jqGrid工具类 -->
								<div id="gridPager_kaigong"></div>
								<!-- 查询对话框 -->
								<div style="display: none;">
<%--									<div class="row" id="queryDialog"></div>--%>
								</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
					</shiro:hasPermission>

					<%--在建--%>
					<shiro:hasPermission name="sys:gongjian:zaijianlist">
					<div class="main-content-inner">
					<div class="page-content">
						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">

								<h3 align="center">在建提速项目</h3>
								<div class="pull-left">
									<button class="btn btn-sm btn-info" id="zaijian-query">刷新任务</button>

								<%--<shiro:hasPermission name="modules:sys:table:query">
                                        <button class="btn btn-sm btn-info" id="query">查询</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:edit">
                                        <button class="btn btn-sm btn-default" id="edit">修改</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:create">
                                        <button class="btn btn-sm btn-success" id="create">新增</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:delete">
                                        <button class="btn btn-sm btn-danger" id="delete">删除</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:excel">
                                        <button class="btn btn-sm btn-pink" id="export">导出</button>
                                    </shiro:hasPermission>--%>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<!-- jqGrid表格 -->
								<table id="gridTable_zaijian"></table>
								<!-- jqGrid工具类 -->
								<div id="gridPager_zaijian"></div>
								<!-- 查询对话框 -->
								<div style="display: none;">
									<%--									<div class="row" id="queryDialog"></div>--%>
								</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
					</shiro:hasPermission>

					<%--竣工--%>
					<shiro:hasPermission name="sys:gongjian:jungonglist">
					<div class="main-content-inner">
					<div class="page-content">
						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">

								<h3 align="center">竣工提速项目</h3>
								<div class="pull-left">
									<button class="btn btn-sm btn-info" id="jungong-query">刷新任务</button>

								<%--<shiro:hasPermission name="modules:sys:table:query">
                                        <button class="btn btn-sm btn-info" id="query">查询</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:edit">
                                        <button class="btn btn-sm btn-default" id="edit">修改</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:create">
                                        <button class="btn btn-sm btn-success" id="create">新增</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:delete">
                                        <button class="btn btn-sm btn-danger" id="delete">删除</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:excel">
                                        <button class="btn btn-sm btn-pink" id="export">导出</button>
                                    </shiro:hasPermission>--%>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<!-- jqGrid表格 -->
								<table id="gridTable_jungong"></table>
								<!-- jqGrid工具类 -->
								<div id="gridPager_jungong"></div>
								<!-- 查询对话框 -->
								<div style="display: none;">
									<%--									<div class="row" id="queryDialog"></div>--%>
								</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
					</shiro:hasPermission>

				<%--招商--%>
					<shiro:hasPermission name="sys:gongjian:zhaoshanglist">
					<div class="main-content-inner">
					<div class="page-content">
						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">

								<h3 align="center">招商专项落地项目</h3>
								<div class="pull-left">
									<button class="btn btn-sm btn-info" id="zhaoshang-query">刷新任务</button>

								<%--<shiro:hasPermission name="modules:sys:table:query">
                                        <button class="btn btn-sm btn-info" id="query">查询</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:edit">
                                        <button class="btn btn-sm btn-default" id="edit">修改</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:create">
                                        <button class="btn btn-sm btn-success" id="create">新增</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:delete">
                                        <button class="btn btn-sm btn-danger" id="delete">删除</button>
                                    </shiro:hasPermission>
                                    <shiro:hasPermission name="modules:sys:table:excel">
                                        <button class="btn btn-sm btn-pink" id="export">导出</button>
                                    </shiro:hasPermission>--%>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<!-- jqGrid表格 -->
								<table id="gridTable_zhaoshang"></table>
								<!-- jqGrid工具类 -->
								<div id="gridPager_zhaoshang"></div>
								<!-- 查询对话框 -->
								<div style="display: none;">
									<%--									<div class="row" id="queryDialog"></div>--%>
								</div>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
					</shiro:hasPermission>


			</div><!-- /.main-content -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
			
			<!-- dialog -->
			<%@ include file="/WEB-INF/views/include/dialog.jsp"%>
		</div><!-- /.main-container -->
		
		<!-- footer -->
		<%@ include file="/WEB-INF/views/include/footer.jsp"%>
		
		<script type="text/javascript">
			//基本路径
			var baseUrl = "<s:url value="/sys/gongjian"></s:url>/"
			
			//jqgrid的表格高度
			var height = 320;
			//jqgrid表格行头的中文
			var colNames = ['','项目名称','当期填报状态',
										/*'交地面积（亩）', '拆迁面积（平方米）','征迁户数（户）',
										'未交地面积（亩）','未拆迁面积（平方米）','未征迁户数（户）',*/
										'交地面积（亩）','拆迁面积（平方米）','征迁户数（户）' ,
				'完成任务时间','责任单位','配合单位','责任领导','备注',
				'反馈账号','形象进度', '预计月底能否达成本月节点', "备注（未达标备注）", "本期完成交地面积", "完成交地总面积", "本期完成拆迁面积",'完成拆迁总面积','本期完成征迁户数','完成征迁总户数'

			];
			//jqgrid表格中每一行的信息模型
			var colModel = [
				{name:'sysId', width:60, hidden: true,key:true},
				{name:'projectName',index:'projectName',        width:350, editable: true},
				{name:'currentBack',index:'currentBack', 				width:90, editable: true,align: 'center',formatter: feedbackFormatter},

				// {name:'totalJiaodi',index:'totalJiaodi', 		width:100, editable: true,align: 'center',},
				// {name:'totalChaiqian',index:'totalChaiqian',    width:120, editable: true,align: 'center',},
				// {name:'totalHu',index:'totalHu', 				width:100, editable: true,align: 'center',},
				// {name:'weiJiaodi',index:'weiJiaodi', 			width:105, editable: true,align: 'center',},
				// {name:'weiWeichaiqian',index:'weiWeichaiqian',  width:130, editable: true,align: 'center',},
				// {name:'weiHu',index:'weiHu', 					width:100, editable: true,align: 'center',},
				{name:'gongJiaodi',index:'gongJiaodi',			width:100, editable: true,align: 'center',},
				{name:'gongChaiqian',index:'gongChaiqian', 		width:120, editable: true,align: 'center',},
				{name:'gongHu',index:'gongHu', 					width:100, editable: true,align: 'center',},
				{name:'endDate',index:'endDate', 				width:90, editable: true,align: 'center',},
				{name:'zerenDept',index:'zerenDept', 				width:120, editable: true,align: 'center',},
				{name:'peiheDept',index:'peiheDept', 		width:200, editable: true,align: 'center',},
				{name:'leaderName',index:'leaderName', 			width:120, editable: true,align: 'left',},
				{name:'remarks',index:'remarks', 				width:200, editable: true,align: 'left',},

				{name: 'createName', index: 'createName', width: 100, editable: true},
				{name: 'xingxiang', index: 'xingxiang', width: 250, editable: true},

				{name: 'reachoals', index: 'reachoals', width: 163, editable: true,formatter: reahchFormatter},
				{name: 'backRemarks', index: 'backRemarks', width: 150, editable:                       true},
				{name: 'currentMianji', index: 'currentMianji', width: 120, editable:           true},
				{name: 'finishMianji', index: 'finishMianji', width: 120, editable:             true},
				{name: 'currentChaiqian', index: 'currentChaiqian', width: 120, editable:       true},
				{name: 'finishChaiqian', index: 'finishChaiqian', width: 120, editable:         true},
				{name: 'currentZhengqianhu', index: 'currentZhengqianhu', width: 120, editable: true},
				{name: 'finishZhengqianhu', index: 'finishZhengqianhu', width: 120, editable:   true},
			];
			
			//jqgrid的具体执行方法
			jqgrid({
				rowNum:10,
				gridTableId : "#gridTable",
				gridPagerId : "#gridPager",
				multiselect: true,
				autoScroll: false,
				rownumbers: true,
				shrinkToFit: false,
				onSelectRow: function () {

				}

			});
			jQuery("#gridTable").jqGrid('setGroupHeaders',{
				useColSpanStyle:true,
				groupHeaders:[
					// {startColumnName: 'totalJiaodi', numberOfColumns: 3, titleText: '<h5 align="center" >总征地拆迁量</h5>'},
					// {startColumnName: 'weiJiaodi',   numberOfColumns: 3, titleText: '<h5 align="center">未完成征地拆迁量</h5>'},
					{startColumnName: 'gongJiaodi',  numberOfColumns: 3, titleText: '<h5 align="center">攻坚期间目标</h5>'},
				]
			})

			function reahchFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "是"
					case 2:
						return "否"

				}
			}
			
			//加载查询对话框
			// $("#queryDialog").load(getUrl("filter"));

			function feedbackFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "已反馈"
					default:
						return "未知错误"

				}
			}


			//重置表单
			function reset() {
				resetForm("#formDialog form");
			}
			


			//双击列表
			$("#gridTable").dblclick(function(e){
				var ids = getSelectIds('#gridTable');
				var projectId =ids[0];
				// showView();
				console.log(projectId)
				parent.openapp("/sys/gongjian/detail/"+projectId,'gongjiandetail'+projectId,"任务详情")

			});

			$("#zhengdi-query").click(function (e) {

				reload("#gridTable");

			});


		</script>


<%--

	------------------------------------------------------开工------------------------------------------------------------------------
--%>
		<script type="text/javascript">
			//基本路径
			var baseUrl = "<s:url value="/sys/gongjian/kaigong"></s:url>/"

			//jqgrid的表格高度
			var height = 320;
			//jqgrid表格行头的中文
			var colNames = ['','项目名称','当期填报状态',
				'年度计划投资', '攻坚期间计划投资（亿）','计划开工时间',
				'9月节点目标','10月节点目标','11月节点目标',
				'12月节点目标','责任单位','属地乡镇','责任领导','备注',
				'审核状态',"填报时间",'反馈账号','完成率','形象进度', '预计月底能否达成本月节点', "备注（未达标备注）", '10月当期投资额','8月至10月总投资额'
			];
			//jqgrid表格中每一行的信息模型
			var colModel = [
				{name:'sysId', width:60, hidden: true,key:true},
				{name:'projectName',index:'projectName',        width:300, editable: true},
				{name:'currentBack',index:'currentBack', 				width:90, editable: true,align: 'center',formatter: feedbackFormatter},

				{name:'niandujihua',index:'niandujihua', 		width:100, editable: true,align: 'center',},
				{name:'gongjianjihua',index:'gongjianjihua',    width:120, editable: true,align: 'center',},
				{name:'planStartDate',index:'planStartDate', 	width:100, editable: true,align: 'center',},
				{name:'sepNode',index:'sepNode', 				width:105, editable: true,align: 'center',},
				{name:'octNode',index:'octNode',  				width:130, editable: true,align: 'center',},
				{name:'novNode',index:'novNode', 				width:100, editable: true,align: 'center',},
				{name:'decNode',index:'decNode',				width:100, editable: true,align: 'center',},
				{name:'zerenDept',index:'zerenDept', 			width:120, editable: true,align: 'center',},
				{name:'belong',index:'belong', 					width:100, editable: true,align: 'center',},
				{name:'leaderName',index:'leaderName', 			width:90, editable: true,align: 'center',},
				{name:'remarks',index:'remarks', 				width:200, editable: true,align: 'left',},

				{name: 'audit', index: 'audit', width: 140, editable: true,formatter:auditFormatter},
				{name: 'createDate', index: 'createDate', width: 160, editable: true},
				{name: 'createName', index: 'createName', width: 100, editable: true},
				{name: 'completion', index: 'completion', width: 100, editable: true,formatter:comFormat},

				{name: 'xingxiang', index: 'xingxiang', width: 250, editable: true},
				{name: 'reachoals', index: 'reachoals', width: 200, editable: true,formatter: reahchFormatter},
				{name: 'backRemark', index: 'backRemark', width: 150, editable:                       true},
				// {name: 'addCurrentValue', index: 'addCurrentValue', width: 230, editable:           true},

				{name: 'currentValue', index: 'currentValue', width: 250, editable: true},
				{name: 'totalValue', index: 'totalValue', width: 250, editable: true},
			];

			//jqgrid的具体执行方法
			jqgrid({
				rowNum:10,
				gridTableId : "#gridTable_kaigong",
				gridPagerId : "#gridPager_kaigong",
				multiselect: true,
				autoScroll: true,
				rownumbers: true,
				shrinkToFit: false,
				onSelectRow: function () {

			}

			});

			function reahchFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "是"
					case 2:
						return "否"

				}
			}
			function comFormat(value) {

				if(value==0){
					return "-";
				}else {
					return value+"%"
				}
			}
			function feedbackFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return '<b style="background-color:#BBFFBB" >已反馈</b>'
					default:
						return "未知错误"

				}
			}
			function  auditFormatter(value){
				switch (value) {
					case 0:
						return "未审核";
					case 1:
						return "审核通过";
					case 2:
						return "审核不通过";

				}
			}

			//加载查询对话框
			// $("#queryDialog").load(getUrl("filter"));

			//重置表单
			function reset() {
				resetForm("#formDialog form");
			}



			//双击列表
			$("#gridTable_kaigong").dblclick(function(e){
				var ids = getSelectIds('#gridTable_kaigong');
				var projectId =ids[0];
				// showView();
				console.log(projectId)
				parent.openapp("/sys/gongjian/kaigong/detail/"+projectId,'kaigongdetail'+projectId,"任务详情")

			});


			$("#kaigong-query").click(function (e) {

				reload("#gridTable_kaigong");

			});

		</script>


<%--	----------------------------------------在建提速----------------------------------------------------------------%>

		<script type="text/javascript">
			//基本路径
			var baseUrl = "<s:url value="/sys/gongjian/zaijian"></s:url>/"

			//jqgrid的表格高度
			var height = 320;
			//jqgrid表格行头的中文
			var colNames = ['','项目名称','当期填报状态',
				'年度计划投资', '攻坚期间计划投资（亿）','计划竣工、投产时间',
				'9月完成投资目标','10月完成投资目标','11月完成投资目标',
				'12月完成投资目标','责任单位','属地乡镇','责任领导','备注',
				'审核状态',"填报时间",'反馈账号','完成率','形象进度', '本期(半个月)完成值','总完成值','预计月底能否达本月节点目标', "备注（未达标备注）", /*"预估8月至本月底合计完成投资(亿)"*/
				'10月当期投资额','8月至10月总投资额'
			];
			//jqgrid表格中每一行的信息模型
			var colModel = [
				{name:'sysId', width:60, hidden: true,key:true},
				{name:'projectName',index:'projectName',        width:300, editable: true},
				{name:'currentBack',index:'currentBack', 				width:90, editable: true,align: 'center',formatter: feedbackFormatter},

				{name:'niandujihua',index:'niandujihua', 		width:100, editable: true,align: 'center',},
				{name:'gongjianjihua',index:'gongjianjihua',    width:120, editable: true,align: 'center',},
				{name:'planStartDate',index:'planStartDate', 	width:100, editable: true,align: 'center',},
				{name:'sepNode',index:'sepNode', 				width:105, editable: true,align: 'center',},
				{name:'octNode',index:'octNode',  				width:130, editable: true,align: 'center',},
				{name:'novNode',index:'novNode', 				width:100, editable: true,align: 'center',},
				{name:'decNode',index:'decNode',				width:100, editable: true,align: 'center',},
				{name:'deptname',index:'deptname', 				width:120, editable: true,align: 'center',},
				{name:'belong',index:'belong', 					width:100, editable: true,align: 'center',},
				{name:'leaderName',index:'leaderName', 			width:90, editable: true,align: 'center',},
				{name:'remarks',index:'remarks', 				width:200, editable: true,align: 'left',},

				{name: 'audit', index: 'adudit', width: 140, editable: true,formatter:auditFormatter},
				{name: 'createDate', index: 'createDate', width: 160, editable: true},
				{name: 'createName', index: 'createName', width: 100, editable: true},
				{name: 'completion', index: 'completion', width: 100, editable: true,formatter:comFormat},

				{name: 'xingxiang', index: 'xingxiang', width: 250, editable: true},
				{name: 'currentValue', index: 'currentValue', width: 250, editable: true},
				{name: 'totalValue', index: 'totalValue', width: 250, editable: true},
				{name: 'reachoals', index: 'reachoals', width: 200, editable: true,formatter: reahchFormatter},
				{name: 'backRemark', index: 'backRemark', width: 150, editable:                       true},
				// {name: 'addCurrentValue', index: 'addCurrentValue', width: 230, editable:           true},
				{name: 'currentValue', index: 'currentValue', width: 250, editable: true},
				{name: 'totalValue', index: 'totalValue', width: 250, editable: true},
			];

			//jqgrid的具体执行方法
			jqgrid({
				rowNum:10,
				gridTableId : "#gridTable_zaijian",
				gridPagerId : "#gridPager_zaijian",
				multiselect: true,
				autoScroll: true,
				rownumbers: true,
				shrinkToFit: false,
				onSelectRow: function () {

				}

			});

			function comFormat(value) {

				if(value==0){
					return "-";
				}else {
					return value+"%"
				}
			}
			function reahchFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "是"
					case 2:
						return "否"

				}
			}
			function feedbackFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return '<b style="background-color:#BBFFBB" >已反馈</b>'
					default:
						return "未知错误"

				}
			}
			function  auditFormatter(value){
				switch (value) {
					case 0:
						return "未审核";
					case 1:
						return "审核通过";
					case 2:
						return "审核不通过";

				}
			}


			//加载查询对话框
			// $("#queryDialog").load(getUrl("filter"));

			//重置表单
			function reset() {
				resetForm("#formDialog form");
			}


			//双击列表
			$("#gridTable_zaijian").dblclick(function(e){
				var ids = getSelectIds('#gridTable_zaijian');
				var projectId =ids[0];
				// showView();
				console.log(projectId)
				parent.openapp("/sys/gongjian/zaijian/detail/"+projectId,'zaijiandetail'+projectId,"任务详情")

			});

			$("#zaijian-query").click(function (e) {

				reload("#gridTable_zaijian");

			});
		</script>
<%---------------------------------------------竣工投产项目 ------------------------------          --%>
		<script type="text/javascript">
			//基本路径
			var baseUrl = "<s:url value="/sys/gongjian/jungong"></s:url>/"

			//jqgrid的表格高度
			var height = 320;
			//jqgrid表格行头的中文
			var colNames = ['','项目名称','当期填报状态',
				'年度计划投资', '攻坚期间计划投资（亿）','计划竣工、投产时间',
				'9月完成投资目标','10月完成投资目标','11月完成投资目标',
				'12月完成投资目标','责任单位','属地乡镇','责任领导','备注',
				'审核状态',"填报时间",'反馈账号', '形象进度','完成率', '预计月底能否达本月节点目标', "备注（未达标备注）", /*"预估8月至本月底合计完成投资(亿)"*/
				'10月当期投资额','8月至10月总投资额'
			];
			//jqgrid表格中每一行的信息模型
			var colModel = [
				{name:'sysId', width:60, hidden: true,key:true},
				{name:'projectName',index:'projectName',        width:300, editable: true},
				{name:'currentBack',index:'currentBack', 				width:90, editable: true,align: 'center',formatter: feedbackFormatter},

				{name:'niandujihua',index:'niandujihua', 		width:100, editable: true,align: 'center',},
				{name:'gongjianjihua',index:'gongjianjihua',    width:120, editable: true,align: 'center',},
				{name:'planStartDate',index:'planStartDate', 	width:100, editable: true,align: 'center',},
				{name:'sepNode',index:'sepNode', 				width:105, editable: true,align: 'center',},
				{name:'octNode',index:'octNode',  				width:130, editable: true,align: 'center',},
				{name:'novNode',index:'novNode', 				width:100, editable: true,align: 'center',},
				{name:'decNode',index:'decNode',				width:100, editable: true,align: 'center',},
				{name:'deptname',index:'deptname', 				width:120, editable: true,align: 'center',},
				{name:'belong',index:'belong', 					width:100, editable: true,align: 'center',},
				{name:'leaderName',index:'leaderName', 			width:90, editable: true,align: 'center',},
				{name:'remarks',index:'remarks', 				width:200, editable: true,align: 'left',},

				{name: 'audit', index: 'adudit', width: 140, editable: true,formatter:auditFormatter},
				{name: 'createDate', index: 'createDate', width: 160, editable: true},
				{name: 'createName', index: 'createName', width: 100, editable: true},
				{name: 'xingxiang', index: 'xingxiang', width: 250, editable: true},
				{name: 'completion', index: 'completion', width: 100, editable: true,formatter:comFormat},

				{name: 'reachoals', index: 'reachoals', width: 200, editable: true,formatter: reahchFormatter},
				{name: 'remarks', index: 'remarks', width: 150, editable:true},
				// {name: 'addCurrentValue', index: 'addCurrentValue', width: 230, editable:  true},
				{name: 'currentValue', index: 'currentValue', width: 250, editable: true},
				{name: 'totalValue', index: 'totalValue', width: 250, editable: true},
			];

			//jqgrid的具体执行方法
			jqgrid({
				rowNum:10,
				gridTableId : "#gridTable_jungong",
				gridPagerId : "#gridPager_jungong",
				multiselect: true,
				autoScroll: true,
				rownumbers: true,
				shrinkToFit: false,
				onSelectRow: function () {

				}

			});


			function comFormat(value) {

				if(value==0){
					return "-";
				}else {
					return value+"%"
				}
			}
			function reahchFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "是"
					case 2:
						return "否"

				}
			}

			function  auditFormatter(value){
				switch (value) {
					case 0:
						return "未审核";
					case 1:
						return "审核通过";
					case 2:
						return "审核不通过";

				}
			}

			function feedbackFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return '<b style="background-color:#BBFFBB" >已反馈</b>'

					default:
						return "未知错误"

				}
			}

			//加载查询对话框
			// $("#queryDialog").load(getUrl("filter"));

			//重置表单
			function reset() {
				resetForm("#formDialog form");
			}



			//双击列表
			$("#gridTable_jungong").dblclick(function(e){
				var ids = getSelectIds('#gridTable_jungong');
				var projectId =ids[0];
				// showView();
				console.log(projectId)
				parent.openapp("/sys/gongjian/jungong/detail/"+projectId,'jungongdetail'+projectId,"任务详情")

			});

			$("#jungong-query").click(function (e) {

				reload("#gridTable_jungong");

			});
		</script>

	<%-----------------------------------------招商专项项目---------------------------------------------%>
		<script type="text/javascript">
			//基本路径
			var baseUrl = "<s:url value="/sys/gongjian/zhaoshang"></s:url>/"

			//jqgrid的表格高度
			var height = 320;
			//jqgrid表格行头的中文
			var colNames = ['','项目名称','当期填报状态',
				'年度计划投资', '攻坚期间计划投资（亿）','计划竣工、投产时间',
				'9月完成投资目标','10月完成投资目标','11月完成投资目标',
				'12月完成投资目标','责任单位','属地乡镇','责任领导','备注',
				'审核状态',"填报时间",'反馈账号','形象进度','完成率', '预计月底能否达本月节点目标', "备注（未达标备注）", /*"预估8月至本月底合计完成投资(亿)"*/'10月当期投资额','8月至10月总投资额'
			];
			//jqgrid表格中每一行的信息模型
			var colModel = [
				{name:'sysId', width:60, hidden: true,key:true},
				{name:'projectName',index:'projectName',        width:300, editable: true},
				{name:'currentBack',index:'currentBack', 				width:90, editable: true,align: 'center',formatter: feedbackFormatter},

				{name:'niandujihua',index:'niandujihua', 		width:100, editable: true,align: 'center',},
				{name:'gongjianjihua',index:'gongjianjihua',    width:120, editable: true,align: 'center',},
				{name:'planStartDate',index:'planStartDate', 	width:100, editable: true,align: 'center',},
				{name:'sepNode',index:'sepNode', 				width:105, editable: true,align: 'center',},
				{name:'octNode',index:'octNode',  				width:130, editable: true,align: 'center',},
				{name:'novNode',index:'novNode', 				width:100, editable: true,align: 'center',},
				{name:'decNode',index:'decNode',				width:100, editable: true,align: 'center',},
				{name:'deptname',index:'deptname', 				width:120, editable: true,align: 'center',},
				{name:'belong',index:'belong', 					width:100, editable: true,align: 'center',},
				{name:'leaderName',index:'leaderName', 			width:90, editable: true,align: 'center',},
				{name:'remarks',index:'remarks', 				width:200, editable: true,align: 'left',},

				{name: 'audit', index: 'adudit', width: 140, editable: true,formatter:auditFormatter},
				{name: 'createDate', index: 'createDate', width: 160, editable: true},
				{name: 'createName', index: 'createName', width: 100, editable: true},
				{name: 'xingxiang', index: 'xingxiang', width: 250, editable: true},
				{name: 'completion', index: 'completion', width: 100, editable: true,formatter:comFormat},

				{name: 'reachoals', index: 'reachoals', width: 200, editable: true,formatter: reahchFormatter},
				{name: 'remarks', index: 'remarks', width: 150, editable:                       true},
				// {name: 'addCurrentValue', index: 'addCurrentValue', width: 230, editable:           true},
				{name: 'currentValue', index: 'currentValue', width: 250, editable: true},
				{name: 'totalValue', index: 'totalValue', width: 250, editable: true},
			];

			//jqgrid的具体执行方法
			jqgrid({
				rowNum:10,
				gridTableId : "#gridTable_zhaoshang",
				gridPagerId : "#gridPager_zhaoshang",
				multiselect: true,
				autoScroll: true,
				rownumbers: true,
				shrinkToFit: false,
				onSelectRow: function () {

				}

			});
			function comFormat(value) {

				if(value==0){
					return "-";
				}else {
					return value+"%"
				}
			}

			function reahchFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return "是"
					case 2:
						return "否"

				}
			}
			function feedbackFormatter(value) {

				switch (value) {
					case 0:
						return "未填写"
					case 1:
						return '<b style="background-color:#BBFFBB" >已反馈</b>'

					default:
						return "未知错误"

				}
			}
			function  auditFormatter(value){
				switch (value) {
					case 0:
						return "未审核";
					case 1:
						return "审核通过";
					case 2:
						return "审核不通过";

				}
			}


			//加载查询对话框
			// $("#queryDialog").load(getUrl("filter"));

			//重置表单
			function reset() {
				resetForm("#formDialog form");
			}



			//双击列表
			$("#gridTable_zhaoshang").dblclick(function(e){
				var ids = getSelectIds('#gridTable_zhaoshang');
				var projectId =ids[0];
				// showView();
				console.log(projectId)
				parent.openapp("/sys/gongjian/zhaoshang/detail/"+projectId,'zhaoshangdetail'+projectId,"任务详情")

			});
			$("#zhaoshang-query").click(function (e) {

				reload("#gridTable_zhaoshang");

			});


		</script>
	</body>
</html>